<include file="Common/header" />
<title>水电气费管理</title>
</head>
<body>
<nav class="breadcrumb">
	<i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 系统管理
	<span class="c-gray en">&gt;</span> 修改密码
	<a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
		<i class="Hui-iconfont">&#xe68f;</i>
	</a>
</nav>

<div class="pd-20">
	<div class="codeView docs-example" data-afterContent="修改密码">
		<form action="" method="POST" id="addfrom">
			<table class="table table-border table-bordered table-striped">
				<tbody>
					<tr>
						<td width="20%" class="text-r">旧密码：</td>
						<td>
							<input type="password" name="oldpwds" id="oldpwds" class="input-text radius" value="" style="width: 300px;" />
							<span class="usernameabel"></span>
						</td>
					</tr>
					<tr>
						<td width="20%" class="text-r">新密码：</td>
						<td>
							<input type="password" name="password" id="password" class="input-text radius" value="" style="width: 300px;" />
							<span class="passwordabel"></span>
						</td>
					</tr>
					<tr>
						<td width="20%" class="text-r">确认密码：</td>
						<td>
							<input type="password" name="password2" id="password2" class="input-text radius" value="" style="width: 300px;" />
							<span class="nicknameabel"></span>
						</td>
					</tr>
					
					<tr>
						<td class="text-c" colspan="2">
							<input type="button" value="确定" class="btn btn-success radius roleSubmit" style="width:80px;" />
						</td>
					</tr>
				</tbody>
			</table>
		</form>	
	</div>
</div>
<script>
	$(document).ready(function(){
		$(".roleSubmit").on('click', function(){
			$.post("pwds.html", $("#addfrom").serialize(), function(data){
				if(data == '修改密码成功'){
					layer.msg(data, {icon: 1, time: 2000});
				}else{
					layer.msg(data, {icon: 2, time: 2000});
				}
			},'json');
		});
	});
</script>
</body>
</html>